package regex;

import java.util.*;

public class ScanIn {
	public static void main(String[] args) {
		System.out.println("input: ");
		System.out.flush();
		try {
			Scanner s = new Scanner("1b2c335f456");
			String token;
			do {
				token  = s.findInLine("\\d\\d");
				System.out.println("found " + token);
			} while (token != null);
		} catch (Exception e) { System.out.println("scan exc"); }		
	}
}
